package com.wufan.day05.exer1;

/**
 * @author SongWufan
 * @date 2021/3/9 21:26
 */
public class TriangleTest {
    public static void main(String[] args) {
        Triangle triangle = new Triangle();
        triangle.setBase(2.0);
        triangle.setHeight(2.4);
        System.out.println("base："+triangle.getBase()+"\t"+"height："+triangle.getHeight());
        Triangle triangle1 = new Triangle(5.1,5.6);
        System.out.println(triangle1.getBase()+"\t"+triangle1.getHeight());
    }

}
